package com.atguigu.springcloud.alibaba.service;

import com.atguigu.springcloud.alibaba.dao.TAccountDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.math.BigDecimal;

/**
 * @Author: shikong
 * @Date: 2020/8/13 22:54
 */

@Service
public class AccountService {
    @Resource
    private TAccountDao tAccountDao;

    public void decrease(Long userId, BigDecimal money) {
        tAccountDao.decrease(userId,money);
    }
}
